package net.yc.imalachat.push.activities;



import android.content.Intent;

import androidx.annotation.Nullable;
import androidx.fragment.app.Fragment;

import com.example.common.app.Activity;

import net.yc.imalachat.push.R;
import net.yc.imalachat.push.frags.user.UpdateInfoFragment;

public class UserActivity extends Activity {
    private Fragment mCurrFragment;

    @Override
    protected int getContentLayoutId() {
        return R.layout.activity_user;
    }

    /**
     * Activity中收到的剪切图片成功的回调
     * @param requestCode
     * @param resultCode
     * @param data
     */
    @Override
    public void onActivityResult(int requestCode, int resultCode, @Nullable @org.jetbrains.annotations.Nullable Intent data) {
        super.onActivityResult(requestCode, resultCode, data);
        mCurrFragment.onActivityResult(requestCode, resultCode, data);
    }

    @Override
    protected void initWidget() {
        super.initWidget();

        mCurrFragment = new UpdateInfoFragment();
        // 显示控件的方法
        getSupportFragmentManager()
                .beginTransaction()
                .add(R.id.layout_container, mCurrFragment)
                .commit();
    }
}